<template>
	<view class="setPadding">
		<navigationBar :titleName="'反馈记录'"></navigationBar>
		<view class="setBgfff setPadding setRadius setMarginVertical" v-for="(item,index) in recordList">
			<text class="setMarginVertical">{{item.createTime}}</text>
			<view class="setMarginVertical">
				{{item.content}}
			</view>
			<view class="img" v-if="item.imgPath">
					<view class="imgItem setPadding setRadius setDisplayCenter" v-for="(item2,index2) in item.imgPath">
						<!-- <u-image  mode="widthFix" :src="item2"></u-image> -->
						<image :src="item2" mode="widthFix"></image>
					</view>
			</view>
		</view>
		<view v-if="!recordList||recordList.length<1" class="">
			<noData  text="暂无相关信息~"></noData> 
		</view>
	</view>
</template>

<script>
	export default {

		data() {
			return {
				recordList:null
			}
		},
		beforeMount() {
			this.getfindFeedback()
			
		},
		methods: {
			// 查看用户反馈记录
			getfindFeedback() {
				
				let url=this.$baseApp.api.user.findFeedback;
				this.$http.post(url).then(res => {
						
					if(res.code==200){
						if(res.data){
							this.recordList=[]
							res.data.forEach(item=>{
								if(item.imgPath){
									item.imgPath=item.imgPath.split(',')
								}
								this.recordList.push(item)
								
							})
							// this.recordList=res.data
							
						}
					}
					
					console.log("这里是获取用户基本信息", res)
				}, err => {
					
				
				})
			}
		},
	}
	
</script>

<style lang="scss">
	.img{
		display: flex;
		flex-wrap: wrap;
		
		.imgItem{
			width: 33%;
			height: 300rpx;
			padding:10rpx;
			
			image{
				width: 100%;
				height: 100%;
			}
		}
	}
</style>
